import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_media_library_permission_method_channel.dart';

abstract class IosMediaLibraryPermissionPlatform extends PlatformInterface {
  /// Constructs a IosMediaLibraryPermissionPlatform.
  IosMediaLibraryPermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosMediaLibraryPermissionPlatform _instance = MethodChannelIosMediaLibraryPermission();

  /// The default instance of [IosMediaLibraryPermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosMediaLibraryPermission].
  static IosMediaLibraryPermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosMediaLibraryPermissionPlatform] when
  /// they register themselves.
  static set instance(IosMediaLibraryPermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<int> getMediaLibraryPermission() {
    throw UnimplementedError(
        'getMediaLibraryPermission() has not been implemented.');
  }

  Future<bool> requestMediaLibraryPermission() {
    throw UnimplementedError(
        'requestMediaLibraryPermission() has not been implemented.');
  }
}
